

<form id="pageListForm">
<div class="layui-form">
    <table class="layui-table mt10" lay-even="" lay-skin="row">
        <colgroup>
            <col width="50">
        </colgroup>
        <thead>
            <tr>
                <th><input type="checkbox" lay-skin="primary" lay-filter="allChoose"></th>
                <th>微信昵称</th>
                <th>头像</th>
                <th>订单号</th>
                <th>vip名称</th>
                <th>价格</th>
                <th>vip时长</th>
                <th>状态</th>
           
            </tr> 
        </thead>
        <tbody>
            {volist name="data_list" id="vo"}
            <tr>
                <td><input type="checkbox" name="ids[]" class="layui-checkbox checkbox-ids" value="{$vo['id']}" lay-skin="primary"></td>
                <td>{$vo['nick']}</td>
                <td><img src="{$vo['avatar']}" style="width:40px"></td>
                <td>{$vo['id']}</td>
                <td>{$vo['vipName']}</td>
                <td>{$vo['price']}</td>
                <td>{$vo['vipTime'] == 'ever' ? '永久' : $vo['vipTime'].'天'}</td>
                <td>{if condition="$vo['status'] eq 1"}支付成功{/if}</td>
              
            </tr>
            {/volist}
        </tbody>
    </table>
    <div id="page" ></div>
</div>
</form>

{include file="admin@block/layui" /}
<script>
layui.use(['laypage', 'layer'], function(){
  var laypage = layui.laypage
  ,layer = layui.layer;
  
  var i = 1;
  //完整功能
  laypage.render({
    elem: 'page'
    ,count: {$count}
    ,curr:{$nowPage}
    ,layout: ['count', 'prev', 'page', 'next', 'limit', 'refresh', 'skip']
    ,jump: function(obj){
        console.log(obj.curr);
        if(i != 1) {
            window.location.href="?page=" + obj.curr;
        }
       i ++;
       //
    }
  });
  
  
});
</script>